package com.itht.baoleme.domain.web;

/**
 * 这个枚举是用来放我们请求返回数据中的状态码和描述
 */
public enum WebCodeEnum {

    SUCCESS(200, "success"),
    ERROR(500, "服务器异常"),
    NOT_FUND(404, "服务器未找到资源"),
    USER_NOT_EXIST(500, "用户不存在"),
    PARAM_ERROR(500, "参数异常"),
    ORDER_NOT_EXIST(500, "订单不存在"),
    ;
    /**
     * 请求的状态码
     */
    private int code;

    /**
     * 状态消息
     */
    private String message;

    WebCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }



}
